package com.example.toy.core.commit;

import org.apache.hadoop.fs.Path;

import java.util.ArrayList;
import java.util.List;

/**
 * CompactCommitFile
 *
 * @author shenbing
 * @date 2021/12/23
 */
public class CompactCommitFile {
  public static final String COMPACT_COMMIT_FILE_NAME = "compact_commits.json";

  private Path path;

  public CompactCommitFile(Path path) {
    this.path = path;
  }

  public void overwrite(List<CommitMsg> commitMsgs) {}

  public List<CommitMsg> read() {
    return new ArrayList<>();
  }
}
